﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class Pages_Usercenter_MyEventList : System.Web.UI.Page
{
    public Tuan.Model.UserInfo user = new Tuan.Model.UserInfo();
    public DataSet orderInfo = new DataSet();
    public DataSet eventInfo = new DataSet();
    public int total;
    protected void Page_Load(object sender, EventArgs e)
    {
        hdUserName.Value = User.Identity.Name;
        user = (new Tuan.BLL.UserInfo()).GetModel(User.Identity.Name);
        //if (user == null)
        //    user = new Tuan.Model.UserInfo();
        eventInfo = (new Tuan.BLL.Event()).GetListByEmail(User.Identity.Name);
        foreach(DataRow row in eventInfo.Tables[0].Rows)
        {
            total += (int)row[2];
        }

    }
}
